package cn.lin.vo;

public class Result<T> implements IResult{
    private int code ;
    private String message ;
    private T t ;


    public Result() {
    }


    public Result(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getMessage() {
        this.message = message ;
        return message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public void setMessage(String message) {
        this.message = message ;
    }

    @Override
    public void setCode(int code) {
        this.code = code ;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
}
